package com.dq.health.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.dq.health.dto.request.notice.QueryNoticeParam;
import com.dq.health.dto.request.notice.SaveNoticeRequest;
import com.dq.health.entity.notice.Notice;

/**
 * <公告接口>
 *
 * @Author: chenxin
 * @Date: 2021/5/11
 */
public interface IAPINoticeService {

    /**
     * 功能描述: 新增公告
     *
     * @author: chenxin
     * @param: [request]
     * @date: 2021/5/20
     */
    Long addNotice(SaveNoticeRequest request);

    /**
     * 功能描述: 修改公告
     *
     * @author: chenxin
     * @param: [request]
     * @date: 2021/5/20
     */
    void updateNotice(SaveNoticeRequest request);

    /**
     * 功能描述: 查询公告
     *
     * @author: chenxin
     * @param: [id]
     * @date: 2021/5/20
     */
    Notice getNoticeById(Long id);

    /**
     * 功能描述: 公告分页查询
     *
     * @author: chenxin
     * @param: [param]
     * @date: 2021/5/20
     */
    IPage<Notice> queryPageList(QueryNoticeParam param);


}
